--- title: Signal To Noise Ratio for the OpenHSI Camera keywords: fastai sidebar: home_sidebar summary: "Includes an interactive SNR calculator." description: "Includes an interactive SNR calculator." nb_path: "nbs/04_snr.ipynb" ---
{% raw %}
/Users/eway/.pyenv/versions/3.8.3/lib/python3.8/site-packages/pandas/compat/__init__.py:97: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
  warnings.warn(msg)
{% endraw %} {% raw %}
{% endraw %} {% raw %}
{% endraw %}
{% raw %}
%time ref_model = Model6SV(wavelength_array = np.linspace(390,820,num=100),sixs_path="../openhsi_pre/assets/6SV1.1/sixsV1.1") 
ref_model.show()
100%|██████████| 108/108 [00:16<00:00,  6.42it/s]
CPU times: user 897 ms, sys: 594 ms, total: 1.49 s
Wall time: 18.3 s
{% endraw %} {% raw %}

class Widget_SNR[source]

Widget_SNR(ref_model:Model6SV) :: Parameterized

params(DE_model=ObjectSelector, QE_model=ObjectSelector, aperture_mm=Number, bandwidth_nm=Number, focal_length_mm=Number, integration_time_ms=Number, optical_trans_efficiency=Number, pixel_length_x_μm=Number, pixel_length_y_μm=Number, surface_albedo=Number, name=String)
OpenHSI SNR calculator
Parameters of 'Widget_SNR'
==========================

Parameters changed from their default values are marked in red.
Soft bound values are marked in cyan.
C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None

Name                           Value            Type         Bounds   Mode 

aperture_mm                      4             Number       (1, 200)  V RW 
focal_length_mm                  16            Number                 V RW 
pixel_length_x_μm                65            Number       (1, 80)   V RW 
pixel_length_y_μm               6.9            Number       (1, 60)   V RW 
integration_time_ms              10            Number       (5, 100)  V RW 
bandwidth_nm                     4             Number      (0.1, 20)  V RW 
QE_model                     'imx252qe'    ObjectSelector             V RW 
surface_albedo                  0.3            Number       (0, 1.0)  V RW 
optical_trans_efficiency        0.9            Number       (0.1, 1)  V RW 
DE_model                   '600lpmm_28.7'  ObjectSelector             V RW 

Parameter docstrings:
=====================

aperture_mm:              aperture (mm)
focal_length_mm:          focal length (mm)
pixel_length_x_μm:        pixel length x (μm)
pixel_length_y_μm:        pixel length y (μm)
integration_time_ms:      integration time (ms)
bandwidth_nm:             FWHM bandwidth (nm)
QE_model:                 Camera QE model
surface_albedo:           constant surface albedo reflectance
optical_trans_efficiency: Optical transmission efficiency
DE_model:                 Grating efficiency model
{% endraw %} {% raw %}
{% endraw %} {% raw %}
widget = Widget_SNR(ref_model=ref_model,name="Interactive SNR Widget")
pn.Row(widget.param,widget.view)
{% endraw %}